import os, sys
from pathlib import Path, PurePath

# 插件路径
filepath = os.path.dirname(__file__)
path1, path2 = filepath.split('plugins')

Plugin_path = os.path.join(path1, 'plugins', path2.split(os.sep)[1])
print(Plugin_path)
Ui_path = os.path.join(Plugin_path, 'ui')
Algorithm_path = os.path.join(Plugin_path, 'algorithm')
Tool_path = os.path.join(Plugin_path, 'tool')
# Set up current path.
sys.path.append(Plugin_path)
sys.path.append(Ui_path)
sys.path.append(Algorithm_path)
sys.path.append(Tool_path)
